/**
 * @class ${extApplicationName}.controller.Hello
 * @extends Ext.app.Controller
 */
Ext.define('${extApplicationName}.controller.Hello', {

   extend: 'Ext.app.Controller',
   views: ['Hello'],
   models: ['Hello'],

   init: function() {
      this.control({
         'helloWin': {
            show: this.sayHello
         }
      });
   },

   sayHello: function(helloView) {
      var HelloModel = this.getModel('Hello');
      HelloModel.load(1, {
         scope: this,
         success: function(hello) {
            helloView.showSuccessMessage(hello.get('message'));
         }
      });
   }
});